Skip to content

Conversation

@dlee
Copy link
Contributor

@dlee dlee commented Sep 17, 2018

Fix for #34

Don't process constant() and env() since these are non-calc values.

Using solution provided by @guylando:
#34 (comment)

Copy link
Owner

@MoOx MoOx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you have something like calc(env(safe-area-inset-left) + (100px * 2))?

@dlee
Copy link
Contributor Author

dlee commented Sep 19, 2018

It just skips the rule entirely.

@MoOx
Copy link
Owner

MoOx commented Sep 20, 2018

Yeah so don't you think we should only skip the part with it? The goal of this module is to reduce whenever it's possible.

@dlee
Copy link
Contributor Author

dlee commented Sep 20, 2018

If you can get it to do that, that would be ideal. This is just a naive fix so that things don't break when using constant or env.

@MoOx
Copy link
Owner

MoOx commented Sep 20, 2018

Yeah better than nothing. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants